using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.ServiceProcess;

namespace PickGold.Forms
{
	public class CService_base : ServiceBase, IKernel_application
	{
		private ComponentResourceManager _Resource = null;
		private Dictionary<object, IDisposable> _ObjectCache = null;

		public CService_base() : base()
		{
		}

		public virtual Dictionary<object, IDisposable> ObjectCache
		{
			set
			{
				this._ObjectCache = value;
			}
			get
			{
				return this._ObjectCache;
			}
		}

		public virtual Assembly EntryAssembly
		{
			get
			{
				return Assembly.GetEntryAssembly();
			}
		}

		public virtual ComponentResourceManager Resource
		{
			get
			{
				if(this._Resource == null)
					this._Resource = new ComponentResourceManager(this.GetType());
				return this._Resource;
			}
		}
	}
}
